package com.ljh.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘剑鸿
 * @since 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Billtable对象", description="")
public class Billtable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账单")
    @TableId(value = "billid", type = IdType.AUTO)
    private Integer billid;

    @ApiModelProperty(value = "操作员")
    private Integer id;

    @ApiModelProperty(value = "账单号")
    private String billnumber;

    @ApiModelProperty(value = "账单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8") //响应给前端的数据格式化
    @TableField(fill = FieldFill.INSERT)
    private Date billtime;


    @TableLogic  //逻辑删除
    private Integer deleted;

    private Integer clientid;
    private String diningnumber;
    private String clientname;
    private String menuname;
    private BigDecimal menuprice;
    private String menuP;
    private Integer conut;
    private String menuType;

    private BigDecimal zongjin;
    private Integer diningTableid;
    private Integer memberid;
    private String membergrade;
    private Integer outTableid;
    private BigDecimal balance;
    private Integer integral;
}
